//
//  FunCollectionManager.h
//  LoveTourism
//
//  Created by qianfeng0 on 16/6/24.
//  Copyright © 2016年 王超. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FunModel.h"
#import "FoodModel.h"
@interface FunCollectionManager : NSObject

//单例
+ (instancetype)shareManager;
//添加收藏
- (BOOL)addFavorite:(FunModel *)model;
//是否已经收藏
- (BOOL)favoriateIsExist:(FunModel *)model;
- (NSMutableArray *)selectAll;
//删除
- (BOOL)deleByName:(FunModel *)model;

/**
 *  插入收藏
 */
- (BOOL)insertIntoFavWith:(NSString *)favId and:(NSData *)model;

/**
 *  删除收藏
 */
- (BOOL)deleteFormFavBy:(NSString *)favId;

/**
 *  得到所有收藏
 */
- (NSArray *)getAllFavmodel;

/**
 *  查询某个模型是否收藏
 */
- (BOOL)favIsExist:(FoodModel *)model;

@end
